package com.ipay.dao;

import com.ipay.entity.PayorderEntity;

/**
 * 支付交易订单流水（支付、退款）
 * 
 * @author hacken
 * @email hacken_hu@163.com
 * @date 2017-06-13 20:11:53
 */
public interface PayorderDao extends BaseDao<PayorderEntity> {

	/**
	 * 根据订单号查询
	 * 
	 * @param orderNo
	 * @return
	 */
	public PayorderEntity queryByOderNo(String orderNo);

	/**
	 * 根据订单号查询 该订单对应的退款订单
	 * 
	 * @param orderId
	 *            支付订单ID
	 * @return
	 */
	public PayorderEntity queryByRelationOrder(String orderId);
}
